Python Practice Lab by Angelica Lim;Victor Cheung; & Victor Cheung
Author: Angelica Lim;Victor Cheung; & Victor Cheung , Date: December 2, 2026
, Views: 1
Now our recommendation chatbot is complete! Try replacing your preferences with your friendsâ preferences and see if they get the same recommendations!
3.2.6â Review Questions
Time to test how much you understand the content in this chapter. It is okay to go back and review!
THEORY AND UNDERSTANDING
How would you open a file called survey.txt?
How would you access the second to last element in a list called favourites?
What are two ways to read a line from a file?
How would you split a string of words into a list? Imagine that the words are separated by ;
A list contains the following:
Copyright Disclaimer:
This site does not store any files on its server. We only index and link
to content provided by other sites. Please contact the content providers
to delete copyright contents if any and email us, we'll remove relevant
links or contents immediately.